﻿<ul>
   <li>@Html.ActionLink("EN", "ChangeCulture", "Home",  new { lang = "en-GB", returnUrl = this.Request.RawUrl }, null)</li>
   <li style="margin-right:40px;">@Html.ActionLink("PL", "ChangeCulture", "Home",  new { lang = "pl-PL", returnUrl = this.Request.RawUrl }, null)</li>
@if (Request.IsAuthenticated) {
   
      
            <li style="color:white">@AppResource.Hello, @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!</li>
        
            <li>
                @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
                @Html.AntiForgeryToken()
                <a href="javascript:document.getElementById('logoutForm').submit()">@AppResource.Logoff</a>
                }
           </li>
        
    
} else {
    
      
        <li>@Html.ActionLink(@AppResource.Login, "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
    
    
    
}


  

</ul>